<?php
/* @var $this ReservationController */
/* @var $model Reservation */

$this->breadcrumbs=array(
	'Reservations'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Reservation', 'url'=>array('index')),
	array('label'=>'Update Reservation', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Reservation', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Reservation', 'url'=>array('admin')),
);
?>

<h1>View Reservation #<?php echo $model->id; ?></h1>


<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
			array(               
            'label'=>'Customer Name',
            'type'=>'raw',
            'value'=>CHtml::link(CHtml::encode($model->customer['FullName']), array('customer/view','id'=>$model->customer->id)),
        ),
		array(               
            'label'=>'Address',
            'type'=>'raw',
            'value'=>CHtml::encode(CHtml::encode($model->customer['Address']), array('customer/view','id'=>$model->customer->id)),
        ),
		array(               
            'label'=>'Contact Number',
            'type'=>'raw',
            'value'=>CHtml::encode(CHtml::encode($model->customer['Contact']), array('customer/view','id'=>$model->customer->id)),
        ),
		array(               
            'label'=>'Service Type',
            'type'=>'raw',
            'value'=>CHtml::link(CHtml::encode($model->service['type']), array('service/view','id'=>$model->service->id)),
        ),
		array(               
            'label'=>'Service Price',
            'type'=>'raw',
            'value'=>CHtml::encode(CHtml::encode($model->service['price']), array('service/view','id'=>$model->service->id)),
        ),
		'reservation_date',
		'reservation_time',
		'reservation_type',
		'start_time',
		'end_time',
		array(               
            'label'=>'Attendant',
            'type'=>'raw',
            'value'=>CHtml::link(CHtml::encode($model->attendant['fname']), array('attendant/view','id'=>$model->attendant->id)),
        ),
		array(               
            'label'=>'Bed',
            'type'=>'raw',
            'value'=>CHtml::link(CHtml::encode($model->bed['bed_name']), array('bed/view','id'=>$model->bed->id)),
        ),
		'reservation_status',
		'create_at',
	),
)); ?>
